#!/bin/bash
AMBASDKROOT=/home/zhangzhuan/data/platform/ambarella/cv3/sdk9.1/20230329_tag_SDK9_1_001
# AMBASDKROOT=/home/zhangzhuan/data/platform/ambarella/cv3/sdk9.2/ad685/20240327_tag_SDK_9_2_001_A02 # ad685


rm build -rfv
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release \
      -DCOMPILER_PREFIX=${AMBASDKROOT}/ambalinux_sdk/output/ambalinux/host/opt/ext-toolchain/bin/aarch64-linux-gnu- \
      -DAMBA_SDK_DIR=${AMBASDKROOT}/ambalinux_sdk/output/ambalinux .. 
make -j8
make install
